package cate.common.table.item.fairy.sheet;

import cate.common.table.ESheet;
import cate.common.table.item.fairy.row.FairyPosRow;

/** 仙器栏位 */
public class FairyPosSheet extends ESheet<FairyPosRow> {

    @Override
    public String getSheetName() {
        return "灵器栏位";
    }

    @Override
    protected FairyPosRow buildRow() {
        return new FairyPosRow();
    }

    public FairyPosRow getRowByPos(byte pos) {
        for (FairyPosRow row : this.getList()) {
            if (row.pos == pos) {
                return row;
            }
        }
        return null;
    }
}
